
int sockfd = socket(AF_INET, SOCK_STREAM, 0);


struct sockaddr_in server_addr = {
	    .sin_family = AF_INET,
	        .sin_port = htons(8888),
		    .sin_addr.s_addr = inet_addr("127.0.0.1")
};
connect(sockfd, (struct sockaddr*)&server_addr, sizeof(server_addr));


send(sockfd, "hello", 5, 0);

recv(sockfd, buf, sizeof(buf), 0);
printf("Server response: %s\n", buf);


close(sockfd);
